package com.fantasy.easy.biz.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fantasy.easy.biz.domain.BizCredit;
import com.fantasy.easy.biz.service.BizCreditService;
import com.fantasy.easy.biz.mapper.BizCreditMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 *
 */
@Service
public class BizCreditServiceImpl extends ServiceImpl<BizCreditMapper, BizCredit>
    implements BizCreditService{

    @Resource
    BizCreditMapper bizCreditMapper;

    @Override
    public IPage<BizCredit> queryAll(BizCredit bizCredit, Page<BizCredit> p) {
        return bizCreditMapper.selectPage(p,new QueryWrapper<>(bizCredit));
    }

    @Override
    public int insert(BizCredit bizCredit) {
        return bizCreditMapper.updateById(bizCredit);
    }
}




